package com.haifeng.myapplication;

import android.content.Context;

public class SDKClient2 {
    private static volatile  SDKClient2 instance;
    private static Context contexts;

    public static void init(Context context) {
        contexts = context;
    }

    public static SDKClient2 getInstance() {
        if (instance == null) {
            synchronized (SDKClient2.class){
                instance = new SDKClient2();
            }
        }

        return instance;
    }

    public SDKClient2() {

        System.out.println("sdkclient2 inint ,the context is " + contexts.getClass().getSimpleName());
    }
}
